package com.youkeyi.ddy.cloud.common.api.basic.crm.type;

import com.youkeyi.ddy.cloud.common.api.basic.crm.type.dto.CrmCustomerTypeListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.crm.type.param.*;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * CrmCustomerTypeCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/2/20 4:28 PM
 * @Location shenzhen.china
 */
@Slf4j
@Component
@RequestMapping("/crm/customer/type/fallback")
public class CrmCustomerTypeCloudServiceFallback implements CrmCustomerTypeCloudService {

    @Override
    public CrmCustomerTypeListCloudDto query(CrmCustomerTypeQueryCloudParam param) {
        return new CrmCustomerTypeListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(CrmCustomerTypeCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(CrmCustomerTypeUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(CrmCustomerTypeDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
